.class public final Lb/m;
.super Lb/a;


# static fields
.field private static j:[I


# instance fields
.field public d:[[[I

.field public e:[[[I

.field public f:[I

.field public g:I

.field public h:I

.field public i:[[I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x2

    new-array v0, v0, [I

    sput-object v0, Lb/m;->j:[I

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lb/a;-><init>()V

    return-void
.end method

.method public constructor <init>(ILjava/lang/String;)V
    .locals 7

    const/4 v2, 0x1

    const/4 v6, -0x1

    const/4 v1, 0x0

    invoke-direct {p0}, Lb/a;-><init>()V

    iput p1, p0, Lb/m;->b:I

    const-string v0, "\t"

    invoke-static {p2, v0, v2, v1}, Lkairo/android/i/m;->a(Ljava/lang/String;Ljava/lang/String;ZZ)[Ljava/lang/String;

    move-result-object v0

    aget-object v2, v0, v2

    invoke-static {v2}, Le/a;->e(Ljava/lang/String;)[[[I

    move-result-object v2

    iput-object v2, p0, Lb/m;->d:[[[I

    const/4 v2, 0x3

    aget-object v0, v0, v2

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lb/m;->c:I

    iget-object v0, p0, Lb/m;->d:[[[I

    array-length v0, v0

    new-array v0, v0, [[[I

    iput-object v0, p0, Lb/m;->e:[[[I

    move v2, v1

    :goto_0
    iget-object v0, p0, Lb/m;->e:[[[I

    array-length v0, v0

    if-ge v2, v0, :cond_3

    iget-object v0, p0, Lb/m;->e:[[[I

    iget-object v3, p0, Lb/m;->d:[[[I

    aget-object v3, v3, v2

    array-length v3, v3

    new-array v3, v3, [[I

    aput-object v3, v0, v2

    move v0, v1

    :goto_1
    iget-object v3, p0, Lb/m;->d:[[[I

    aget-object v3, v3, v2

    array-length v3, v3

    if-ge v0, v3, :cond_2

    iget-object v3, p0, Lb/m;->d:[[[I

    aget-object v3, v3, v2

    aget-object v3, v3, v0

    array-length v3, v3

    if-eqz v3, :cond_0

    iget-object v3, p0, Lb/m;->d:[[[I

    aget-object v3, v3, v2

    aget-object v3, v3, v0

    aget v3, v3, v1

    if-ne v3, v6, :cond_0

    add-int/lit8 v3, v0, -0x1

    :goto_2
    if-ltz v3, :cond_0

    iget-object v4, p0, Lb/m;->d:[[[I

    aget-object v4, v4, v2

    aget-object v4, v4, v3

    array-length v4, v4

    if-lez v4, :cond_1

    iget-object v4, p0, Lb/m;->d:[[[I

    aget-object v4, v4, v2

    aget-object v4, v4, v3

    aget v4, v4, v1

    if-eq v4, v6, :cond_1

    iget-object v4, p0, Lb/m;->e:[[[I

    aget-object v4, v4, v2

    iget-object v5, p0, Lb/m;->d:[[[I

    aget-object v5, v5, v2

    aget-object v3, v5, v3

    aput-object v3, v4, v0

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_1
    add-int/lit8 v3, v3, -0x1

    goto :goto_2

    :cond_2
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :cond_3
    return-void
.end method


# virtual methods
.method public final a(IIII)[I
    .locals 5

    iget v0, p0, Lb/m;->h:I

    const/4 v1, 0x5

    if-lt v0, v1, :cond_1

    iget v0, p0, Lb/m;->h:I

    mul-int/lit8 v0, v0, 0xa

    add-int/lit8 v1, p1, -0x1

    mul-int/lit8 v1, v1, -0x23

    div-int/2addr v0, p4

    mul-int v2, p2, v0

    div-int/lit8 v0, v0, 0x2

    add-int/2addr v0, v2

    rem-int/lit8 v2, p2, 0x2

    mul-int/lit8 v2, v2, 0x2

    add-int/2addr v0, v2

    add-int/lit8 v0, v0, 0xa

    mul-int/lit8 v2, p2, 0xa

    add-int/2addr v1, v2

    move v4, v0

    move v0, v1

    move v1, v4

    :goto_0
    const/4 v2, 0x3

    if-ne p3, v2, :cond_0

    neg-int v0, v0

    :cond_0
    sget-object v2, Lb/m;->j:[I

    const/4 v3, 0x0

    aput v0, v2, v3

    sget-object v0, Lb/m;->j:[I

    const/4 v2, 0x1

    aput v1, v0, v2

    sget-object v0, Lb/m;->j:[I

    return-object v0

    :cond_1
    iget v0, p0, Lb/m;->h:I

    mul-int/lit8 v0, v0, 0xa

    add-int/lit8 v1, p1, -0x1

    mul-int/lit8 v1, v1, -0x28

    div-int/2addr v0, p4

    mul-int v2, p2, v0

    div-int/lit8 v0, v0, 0x2

    add-int/2addr v0, v2

    rem-int/lit8 v2, p2, 0x2

    mul-int/lit8 v2, v2, 0x2

    add-int/2addr v0, v2

    add-int/lit8 v0, v0, 0xf

    mul-int/lit8 v2, p2, 0xa

    add-int/2addr v1, v2

    move v4, v0

    move v0, v1

    move v1, v4

    goto :goto_0
.end method

.method public final c()V
    .locals 14

    const/4 v13, 0x4

    const/4 v12, 0x3

    const/4 v11, 0x2

    const/4 v10, 0x1

    const/4 v1, 0x0

    invoke-static {}, Le/a;->a()Le/a;

    move-result-object v6

    move v0, v1

    :goto_0
    iget-object v2, v6, Le/a;->aM:[Lb/n;

    array-length v2, v2

    if-ge v0, v2, :cond_2

    iget-object v2, v6, Le/a;->aM:[Lb/n;

    aget-object v2, v2, v0

    if-eqz v2, :cond_0

    iget-object v2, v6, Le/a;->aM:[Lb/n;

    aget-object v3, v2, v0

    invoke-static {}, Le/a;->a()Le/a;

    move-result-object v2

    iget-object v2, v2, Le/a;->v:Lkairo/android/ui/s;

    iget-object v2, v2, Lkairo/android/ui/s;->b:[Lkairo/android/ui/t;

    aget-object v2, v2, v1

    iget-object v4, v3, Lb/n;->e:[I

    aget v4, v4, v1

    invoke-virtual {v2, v4}, Lkairo/android/ui/t;->a(I)[S

    move-result-object v4

    new-array v5, v13, [I

    aget-short v7, v4, v1

    aput v7, v5, v1

    aget-short v7, v4, v10

    aput v7, v5, v10

    aget-short v7, v4, v11

    aput v7, v5, v11

    aget-short v4, v4, v12

    aput v4, v5, v12

    iput-object v5, v3, Lb/n;->n:[I

    iget-object v4, v3, Lb/n;->n:[I

    aget v4, v4, v11

    iput v4, v3, Lb/n;->m:I

    iget-object v4, v3, Lb/n;->e:[I

    aget v4, v4, v1

    invoke-virtual {v2, v4}, Lkairo/android/ui/t;->b(I)[[I

    move-result-object v4

    move v2, v1

    :goto_1
    array-length v5, v4

    if-ge v2, v5, :cond_0

    aget-object v5, v4, v2

    aget v5, v5, v10

    const/16 v7, -0xa

    if-ne v5, v7, :cond_1

    aget-object v5, v4, v2

    const/4 v7, 0x6

    aget v5, v5, v7

    neg-int v5, v5

    iput v5, v3, Lb/n;->o:I

    aget-object v5, v4, v2

    const/4 v7, 0x6

    aget v5, v5, v7

    aget-object v2, v4, v2

    aget v2, v2, v13

    add-int/2addr v2, v5

    iput v2, v3, Lb/n;->p:I

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    :cond_2
    new-instance v7, Ljava/util/Vector;

    invoke-direct {v7}, Ljava/util/Vector;-><init>()V

    move v0, v1

    :goto_2
    iget-object v2, p0, Lb/m;->d:[[[I

    aget-object v2, v2, v1

    array-length v2, v2

    if-ge v0, v2, :cond_9

    const/4 v3, 0x0

    move v4, v1

    move v2, v1

    :goto_3
    iget-object v5, p0, Lb/m;->d:[[[I

    array-length v5, v5

    if-ge v4, v5, :cond_6

    iget-object v5, p0, Lb/m;->d:[[[I

    aget-object v5, v5, v4

    aget-object v5, v5, v0

    array-length v5, v5

    if-eqz v5, :cond_5

    iget-object v5, p0, Lb/m;->d:[[[I

    aget-object v5, v5, v4

    aget-object v5, v5, v0

    aget v8, v5, v1

    const/4 v9, -0x1

    if-ne v8, v9, :cond_3

    iget-object v5, p0, Lb/m;->e:[[[I

    aget-object v5, v5, v4

    aget-object v5, v5, v0

    :cond_3
    array-length v8, v5

    if-eqz v8, :cond_5

    aget v8, v5, v1

    const/4 v9, -0x1

    if-eq v8, v9, :cond_5

    iget-object v8, v6, Le/a;->aM:[Lb/n;

    aget v5, v5, v1

    aget-object v5, v8, v5

    const/16 v8, 0x10

    invoke-virtual {v5, v8}, Lb/n;->a(I)Z

    move-result v8

    if-eqz v8, :cond_4

    add-int/lit8 v2, v2, 0x1

    :cond_4
    if-nez v3, :cond_5

    iget v8, v5, Lb/n;->d:I

    if-nez v8, :cond_5

    new-array v3, v13, [I

    iget v8, v5, Lb/n;->m:I

    aput v8, v3, v11

    iget v8, v5, Lb/n;->b:I

    aput v8, v3, v1

    const/16 v8, 0x8

    invoke-virtual {v5, v8}, Lb/n;->a(I)Z

    move-result v5

    if-eqz v5, :cond_5

    aget v5, v3, v12

    or-int/lit8 v5, v5, 0x1

    aput v5, v3, v12

    :cond_5
    add-int/lit8 v4, v4, 0x1

    goto :goto_3

    :cond_6
    if-eqz v3, :cond_8

    aget v4, v3, v12

    invoke-static {v4, v10}, Lkairo/android/i/a;->a(II)Z

    move-result v4

    if-eqz v4, :cond_7

    if-lez v2, :cond_7

    aget v2, v3, v12

    or-int/lit8 v2, v2, 0x2

    aput v2, v3, v12

    :cond_7
    invoke-virtual {v7, v3}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    :cond_8
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    :cond_9
    invoke-virtual {v7}, Ljava/util/Vector;->size()I

    move-result v0

    new-array v0, v0, [[I

    iput-object v0, p0, Lb/m;->i:[[I

    move v2, v1

    :goto_4
    iget-object v0, p0, Lb/m;->i:[[I

    array-length v0, v0

    if-ge v2, v0, :cond_b

    iget-object v3, p0, Lb/m;->i:[[I

    invoke-virtual {v7, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [I

    aput-object v0, v3, v2

    if-lez v2, :cond_a

    iget-object v0, p0, Lb/m;->i:[[I

    aget-object v0, v0, v2

    iget-object v3, p0, Lb/m;->i:[[I

    add-int/lit8 v4, v2, -0x1

    aget-object v3, v3, v4

    aget v3, v3, v10

    iget-object v4, p0, Lb/m;->i:[[I

    add-int/lit8 v5, v2, -0x1

    aget-object v4, v4, v5

    aget v4, v4, v11

    add-int/2addr v3, v4

    aput v3, v0, v10

    :cond_a
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_4

    :cond_b
    iget-object v0, p0, Lb/m;->i:[[I

    array-length v0, v0

    add-int/lit8 v0, v0, 0x1

    new-array v0, v0, [I

    iput-object v0, p0, Lb/m;->f:[I

    move v0, v1

    :goto_5
    iget-object v2, p0, Lb/m;->i:[[I

    array-length v2, v2

    if-ge v0, v2, :cond_c

    iget-object v2, p0, Lb/m;->i:[[I

    aget-object v2, v2, v0

    iget-object v3, p0, Lb/m;->f:[I

    add-int/lit8 v4, v0, 0x1

    iget-object v5, p0, Lb/m;->f:[I

    aget v5, v5, v0

    sget-object v7, Lb/m;->a:Le/a;

    iget-object v7, v7, Le/a;->aM:[Lb/n;

    aget v2, v2, v1

    aget-object v2, v7, v2

    iget v2, v2, Lb/n;->g:I

    add-int/2addr v2, v5

    aput v2, v3, v4

    add-int/lit8 v0, v0, 0x1

    goto :goto_5

    :cond_c
    iput v1, p0, Lb/m;->g:I

    move v0, v1

    :goto_6
    iget-object v2, p0, Lb/m;->i:[[I

    array-length v2, v2

    if-ge v0, v2, :cond_d

    iget-object v2, p0, Lb/m;->i:[[I

    aget-object v2, v2, v0

    iget v3, p0, Lb/m;->g:I

    sget-object v4, Lb/m;->a:Le/a;

    iget-object v4, v4, Le/a;->aM:[Lb/n;

    aget v2, v2, v1

    aget-object v2, v4, v2

    iget v2, v2, Lb/n;->m:I

    add-int/2addr v2, v3

    iput v2, p0, Lb/m;->g:I

    add-int/lit8 v0, v0, 0x1

    goto :goto_6

    :cond_d
    iget-object v0, v6, Le/a;->aM:[Lb/n;

    iget-object v2, p0, Lb/m;->i:[[I

    aget-object v2, v2, v1

    aget v1, v2, v1

    aget-object v0, v0, v1

    iget v0, v0, Lb/n;->j:I

    iput v0, p0, Lb/m;->h:I

    return-void
.end method
